Repository navigation
PlantUML diagrams, phase 1: sequence and activity - #157
Merged
Merged
Conversation
…iance skeleton New DemaConsulting.CanvasNet.PlantUml package (core reference only) and test project: the public document API (Parse/Open, metadata, options, limits, records, codes, exceptions, report sink with pending reports, diagram registry seam), the Syntax subsystem (framing, comments, continuation, the !define/!undef/!$variable subset with located statements, and the diagram detector in PlantUML's factory order), the MIT third-party notice, and the system, document and Syntax requirements, design, verification, SysML2 model, views and review sets. FilesTests allows the document's top-level open. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Styling: PlantUML's default look (plantuml.skin values for sequence and activity elements) and the skinparam subset with PlantUML's color forms, reporting ignored parameters and <style> blocks. Scenegraph: an own scene model, a text layout that measures the bundled Liberation fonts as Java measures its logical SansSerif font (Alice at 14 px is 30.345 wide, lines 17.609 high) with the creole subset, and a bounded painter. PlantUmlDocument gains Measure, Render and Render(width, height): reading reports replayed per call, an empty transparent 20x20 picture for types that are not drawn, fail-closed defect mapping. Requirements, design, verification, SysML2 model, views and review sets for both subsystems. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…oz layout - SequenceParser: participants (8 kinds, aliases, order, colors), messages with every arrow form and activation shorthands, activate/deactivate/destroy, return, autonumber, notes (left/right/over/across/on the message row, hnote/rnote), groups with else, boxes, dividers, delays, spaces, page texts, hide footbox, scale, skinparam; located syntax errors, limits, and plantuml-statement-unsupported for ref/newpage/create/ gates/& and the like - SequenceModel, SequenceLayout (column constraints and row geometry of the teoz engine), SequenceRenderer (PlantUML's participant shapes, heads, notes, frames) - Scenegraph: ScenePage places title/header/footer/legend/caption around a body - DiagramDetector: sequence is drawn; end-keyword closers with a space, aligned header/footer, endbox; the document replays the parser's reports - 19 original fixtures with PlantUML 1.2026.10 SVG goldens compared within 1.5 px, tools/visual-diff/update-plantuml-goldens.ps1 - Requirements, design, verification, SysML2, review sets, and provenance for the Sequence subsystem; fix a stray fence in the design introduction Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Port PlantUML's activity v3 "ftile" engine (MIT sources) as the Activity subsystem: ActivityParser (start/stop/end, actions, if/elseif/else, while, repeat, fork/merge/split, arrows, swimlanes, notes, connectors, partitions, kill/detach, page texts, skinparam), ActivityModel (facts per D14), ActivityLayout (tile composition, snakes, swimlanes, compression), and ActivityRenderer. Wire the registry and detector, add PageMetrics for the activity page spacing, enforce MaxEdges on activity arrows. Add 20 original fixtures with plantuml-mit 1.2026.10 SVG goldens, reference layout tests, unit/subsystem/system tests, and the compliance artifacts (reqstream, design, verification, SysML, review sets, provenance). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
PlantUML counts the body of an activity diagram 5 pixels shorter when page texts surround it (its own bottom margin) and keeps the sequence legend gap; model that as PageMetrics.BodyTrim instead of a smaller legend gap, so a title, header, footer or caption without a legend matches PlantUML too. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Follow !include, !include_once and !include_many of local files through the core FileReferenceResolver under PlantUmlOpenOptions.FileAccess (BaseDirectory defaults to the folder of an opened file); URLs, the standard library, file parts, !includeurl and !includesub stay plantuml-include-unsupported and the network is never used. Enforce MaxIncludeDepth and MaxIncludes, locate statements in the included file, and report failures as located plantuml-include-failed errors (policy refusals as the inner exception). Add PlantUmlImageSource (plantuml; .puml/.plantuml/.pu; transparent; notes), hardening tests for every limit plus a seeded mutation fuzzer, eight original gallery diagrams with strict render tests, and the compliance artifacts. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Viewer: SourceKind.PlantUml (.puml, .plantuml, .pu; no content sniffing, .iuml is not a diagram), SourceLoader.PlantUml.cs (probe facts in the shared DiagramFacts, natural or fitted render over the diagram's own background, !include files under the file-access policy, plantuml-error / budget-exceeded / file-access-denied / corrupt-input mapping, strict mode, plantuml-warning notes), the built-in PlantUmlImageSource adapter (SVG image, Mermaid node, montage, flatten), and ErrorCodes.PlantUmlError. Tool: the plantuml formats row, info diagram object, --theme and --positions refused for a PlantUML diagram, usage texts, the plantuml help topic (alias puml) with nine cards and three strictly rendered source examples, the PlantUML sections of the existing cards (errors, limits, json, style, composition, svg, flatten), the CanvasNetTool_RenderPlantUml self-test, the bundled PlantUML notice, and the user-guide chapter skeleton that the help parity test reads. Milestones 6 and 7 are one commit because the tool's tests cross-check the Viewer (the formats table against SourceLoader.ExtensionKinds and a resolvable help topic, the svg embedding card against CanvasNetViewer.Extensions), so a Viewer-only commit cannot pass Tool.Tests. Requirements, design, verification, SysML and review sets updated for both systems. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Code blocks of class plantuml and pictures named .puml, .plantuml, or .pu are drawn by the pandoc-filter command: PictureAttributes lists the class and the suffixes (so the regenerated docs/filters/canvasnet.lua starts the tool for them), a block is written to the cache as a .puml file named by the SHA-1 of a prefix that names the kind (the Mermaid block file name and every existing cache key are unchanged), the block's own class is dropped from the picture, messages and the scale hint name the kind, a PlantUML type the tool does not draw is left as written with a marker, and DependencyHasher.PlantUml.cs hashes every local !include, !include_once, and !include_many file (skipping <stdlib>, URLs, [named] blocks, and file!part) so a changed include draws the picture again. docs/filters/test-canvasnet.ps1 covers blocks, pictures, includes, and the fast path; the pandoc help card, requirements, design, verification, and SysML are updated. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Flesh out the PlantUML chapter: the API reference (PlantUmlDocument, the open and render options with BaseDirectory and FileAccess, the limits, and the diagnostics), the preprocessor and local includes, the skin parameters and the default look, why themes are not supported, the unsupported diagram types and strict mode, known differences, the third-party attribution, embedding as an image, and Examples 68 to 73 drawn by the Pandoc filter (an SVG figure that links two gallery diagrams, a plantuml code block, and the gallery). Add the chapter to the guide and PlantUML to the tool, Viewer, SVG, core, Vega-Lite, and introduction chapters; keep the files help card in step with the File Access Reference list; add the PlantUML @start tags to the TextLint dictionary. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
README: a feature bullet, the package row, the render input and error code, a quick-start line, and the attribution of the MIT PlantUML distribution. AGENTS.md: the description, the project tree, thirteen projects, and the scoped-validation row. SECURITY.md: PlantUML includes are local files under the file-access policy and a URL is never fetched. build.yaml: the tool package must bundle the PlantUml assembly and its notices, formats must list plantuml, a PlantUML render smoke test, and a check that every PlantUML block and picture of the documents is drawn. .fileassert.yaml: a .puml, .plantuml, or .pu picture left in the user guide fails. Files design and the file-access doc comment name the PlantUML includes; the visual-diff README covers both diagram types. Write the hex colors of two SkinTheme and SkinParams requirements as code so yamlfix no longer mistakes them for comments. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
When a branch of an if starts in another swimlane, the arrow to it is drawn by the crossing pass as PlantUML draws it: - The arrows from the hexagons of an elseif chain to their branches are translatable (PlantUML's ConnectionVerticalIn.drawTranslate), so they are no longer dropped, which also restores the compression on y. - The line that joins the branches of an elseif chain is drawn only in the swimlanes from the first to the last one where a branch ends (PlantUML's ConnectionHline.getMinmax). - The crossing arrows of an if and a while merge in the limited way (MergeStrategy.LIMITED), so the step below a two-branch if's hexagon is kept, and the step goes out on the side of the original arrow. Adds the original fixtures 21-if-lane-change and 22-elseif-lane-change with their PlantUML 1.2026.10 goldens, three layout tests, and the requirement, design, and verification text. The swimlane pictures can be up to 3 pixels narrower than PlantUML's (the new goldens). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The design and verification introductions described CanvasNetPlantUml as sequence-only. They now name the Activity subsystem and its units, the PlantUmlImageSource, the include files (Files and ImageSources dependencies), the PlantUML source of the Viewer and the tool, the system test files, the fixtures, and the goldens script. Also brings the other overview text up to date: the Imaging matrix is 14 kinds by 4 outputs (56 cases), --theme of inspect applies only to a Mermaid diagram, there are nine format help topics, the tool's render and self-validation paths include PlantUML, and the files card is cited by the plantuml cards. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Resolve the conflicts by keeping both sides: main's scoped build/lint/fix scripts, SVG text diagnostics, projection= fragment key and picture sizing under skew, alongside the PlantUML additions. Register the PlantUML user guide in the build.ps1 runtime-read map (the help-card parity test of Tool.Tests reads it), list the PlantUML gallery link in AGENTS.md, and name PlantUML in the new README overview. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The line that joins the branches of an elseif chain is drawn one swimlane at a time; the parts stopped at each lane's content edge, leaving a gap of about 5 px on each side of every divider when the branches end in three or more lanes. The drawing pass now hands each lane's column (divider middle to divider middle) to the canvas, and LaneMinMax extends the inner ends of the part to it, so the parts meet. The measuring pass is unchanged. Add a three-lane test, and correct the fixture folders listed in the design introduction (there is no Fixtures/unsupported/; those inputs are inline in the tests). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟡 Changes recommended
Approval is blocked by an active parsing defect that can misidentify diagram boundaries inside block comments, along with inaccurate package metadata that omits activity-diagram support.
2 open issues
What changed in this PR
Adds the new managed DemaConsulting.CanvasNet.PlantUml package, supporting PlantUML sequence and new-syntax activity diagrams without Java or Graphviz, and integrates it across CanvasNet.
Changes:
- Added PlantUML preprocessing, syntax detection, styling, layout, rendering, diagnostics, limits, and local include support.
- Integrated
.puml,.plantuml, and.pudetection and rendering into the Viewer, CLI, SVG/Mermaid composition, and Pandoc filters. - Added fixtures, reference layouts, tests, user documentation, design and verification artifacts, requirements, and SysML2 models.
| File | Description |
|---|---|
| tools/visual-diff/README.md | Documents generation and comparison of PlantUML reference goldens. |
| tools/README.md | Documents the PlantUML visual-diff tooling. |
| test/DemaConsulting.CanvasNet.Viewer.Tests/ViewerExceptionTests.cs | Tests the stable PlantUML viewer error code. |
| test/DemaConsulting.CanvasNet.Viewer.Tests/Imaging/SvgFlattenerTests.cs | Tests flattening PlantUML links in SVG content. |
| test/DemaConsulting.CanvasNet.Viewer.Tests/Imaging/SourceLoaderTests.cs | Tests PlantUML source detection, probing, loading, and error mapping. |
| test/DemaConsulting.CanvasNet.Viewer.Tests/Imaging/InputSelectionTests.cs | Tests PlantUML fragment and input-selection behavior. |
| test/DemaConsulting.CanvasNet.Viewer.Tests/Imaging/ImagingSubsystemTests.cs | Adds PlantUML to shared imaging subsystem coverage. |
| test/DemaConsulting.CanvasNet.Viewer.Tests/Fixtures/README.md | Documents the Viewer test fixtures, including PlantUML inputs. |
| test/DemaConsulting.CanvasNet.Viewer.Tests/Fixtures/plantuml/sequence.puml | Provides a Viewer sequence-diagram fixture. |
| test/DemaConsulting.CanvasNet.Viewer.Tests/Fixtures/plantuml/parts/people.iuml | Provides an included PlantUML participant fragment for Viewer tests. |
| test/DemaConsulting.CanvasNet.Viewer.Tests/Fixtures/plantuml/included.puml | Provides a PlantUML fixture exercising local includes. |
| test/DemaConsulting.CanvasNet.Viewer.Tests/Fixtures/plantuml/class.pu | Provides an unsupported PlantUML diagram fixture. |
| test/DemaConsulting.CanvasNet.Viewer.Tests/Fixtures/plantuml/activity.plantuml | Provides a Viewer activity-diagram fixture. |
| test/DemaConsulting.CanvasNet.Viewer.Tests/FixtureFactory.cs | Registers PlantUML fixtures with shared Viewer tests. |
| test/DemaConsulting.CanvasNet.Viewer.Tests/CanvasNetViewerTests.cs | Updates Viewer source and extension registration expectations for PlantUML. |
| test/DemaConsulting.CanvasNet.Tool.Tests/PandocFilter/PictureCacheTests.cs | Tests caching of PlantUML Pandoc picture sources. |
| test/DemaConsulting.CanvasNet.Tool.Tests/PandocFilter/PandocFilterShimTests.cs | Tests generated Pandoc shim handling for PlantUML. |
| test/DemaConsulting.CanvasNet.Tool.Tests/DemaConsulting.CanvasNet.Tool.Tests.csproj | Adds PlantUML project references and test configuration to tool tests. |
| test/DemaConsulting.CanvasNet.Tool.Tests/Commands/HelpTopicsTests.Guidance.cs | Tests PlantUML help-topic guidance and examples. |
| test/DemaConsulting.CanvasNet.Tool.Tests/Commands/DiscoveryCommandsTests.cs | Tests PlantUML format discovery and command output. |
| test/DemaConsulting.CanvasNet.Tool.Tests/CanvasNetToolTests.cs | Adds PlantUML coverage to tool-level integration tests. |
| test/DemaConsulting.CanvasNet.Tests/Files/FilesTests.cs | Registers PlantUML files for file-access compliance tests. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/Styling/StylingTests.cs | Tests PlantUML styling and skin-parameter behavior. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/SkinColors.cs | Defines test color data for PlantUML skin themes. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/PlantUmlRenderOptionsTests.cs | Tests PlantUML rendering options and limits. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/Fixtures/sequence/19-self-messages.puml | Provides a sequence fixture for self messages. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/Fixtures/sequence/18-arrow-heads.puml | Provides a sequence fixture for arrowhead styles. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/Fixtures/sequence/17-delays-and-spaces.puml | Provides a sequence fixture for delays and spacing. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/Fixtures/sequence/16-notes-on-message-row.puml | Provides a sequence fixture for message-row notes. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/Fixtures/sequence/15-page-texts.puml | Provides a sequence fixture for page text elements. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/Fixtures/sequence/14-group-header-width.puml | Provides a sequence fixture for group header sizing. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/Fixtures/sequence/13-box-with-self.puml | Provides a sequence fixture for boxed participants and self messages. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/Fixtures/sequence/12-wide-notes.puml | Provides a sequence fixture for wide notes. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/Fixtures/sequence/11-all-shapes.puml | Provides a sequence fixture covering participant shapes. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/Fixtures/sequence/10-activation-levels.puml | Provides a sequence fixture for nested activation levels. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/Fixtures/sequence/09-styled.puml | Provides a styled sequence-diagram fixture. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/Fixtures/sequence/08-arrows.puml | Provides a sequence fixture covering arrow styles. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/Fixtures/sequence/07-page.puml | Provides a sequence fixture for page-level text and layout. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/Fixtures/sequence/06-separators.puml | Provides a sequence fixture for dividers and separators. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/Fixtures/sequence/05-groups.puml | Provides a sequence fixture for group constructs. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/Fixtures/sequence/04-notes.puml | Provides a sequence fixture for notes. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/Fixtures/sequence/03-activation.puml | Provides a sequence fixture for activation and deactivation. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/Fixtures/sequence/02-participants.puml | Provides a sequence fixture for participant declarations and ordering. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/Fixtures/sequence/01-basic.puml | Provides a basic sequence-diagram fixture. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/Fixtures/reference/README.md | Documents PlantUML reference-layout fixtures and golden data. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/Fixtures/include/parts/steps.puml | Provides an included PlantUML steps fragment. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/Fixtures/include/main.puml | Provides a PlantUML fixture with local include directives. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/Fixtures/include/common.iuml | Provides shared content for PlantUML include tests. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/Fixtures/activity/22-elseif-lane-change.puml | Provides an activity fixture for elseif lane changes. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/Fixtures/activity/21-if-lane-change.puml | Provides an activity fixture for if-branch lane changes. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/Fixtures/activity/20-fork-in-lanes.puml | Provides an activity fixture for forks across lanes. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/Fixtures/activity/19-if-labels-wide.puml | Provides an activity fixture for wide conditional labels. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/Fixtures/activity/18-while-nested.puml | Provides an activity fixture for nested while loops. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/Fixtures/activity/17-styled.puml | Provides a styled activity-diagram fixture. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/Fixtures/activity/16-page.puml | Provides an activity fixture for page-level text and layout. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/Fixtures/activity/15-connectors.puml | Provides an activity fixture for connectors. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/Fixtures/activity/14-detach-kill.puml | Provides an activity fixture for detach and kill statements. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/Fixtures/activity/13-arrows.puml | Provides an activity fixture for arrow labels and styles. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/Fixtures/activity/12-partition.puml | Provides an activity fixture for partitions. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/Fixtures/activity/11-notes.puml | Provides an activity fixture for notes. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/Fixtures/activity/10-swimlanes.puml | Provides an activity fixture for swimlanes. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/Fixtures/activity/09-split.puml | Provides an activity fixture for split branches. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/Fixtures/activity/08-fork.puml | Provides an activity fixture for fork branches. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/Fixtures/activity/07-repeat.puml | Provides an activity fixture for repeat loops. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/Fixtures/activity/06-while.puml | Provides an activity fixture for while loops. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/Fixtures/activity/05-if-nested.puml | Provides an activity fixture for nested conditionals. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/Fixtures/activity/04-elseif.puml | Provides an activity fixture for elseif branches. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/Fixtures/activity/03-if-else.puml | Provides an activity fixture for if and else branches. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/Fixtures/activity/02-multiline.puml | Provides an activity fixture for multiline actions. |
| test/DemaConsulting.CanvasNet.PlantUml.Tests/Fixtures/activity/01-basic.puml | Provides a basic activity-diagram fixture. |
| src/DemaConsulting.CanvasNet.Viewer/ViewerException.cs | Adds the stable PlantUML viewer error code. |
| src/DemaConsulting.CanvasNet.Viewer/NamespaceDoc.cs | Documents PlantUML support in the Viewer namespace. |
| src/DemaConsulting.CanvasNet.Viewer/LoaderImageSource.cs | Documents PlantUML source and fragment behavior. |
| src/DemaConsulting.CanvasNet.Viewer/DemaConsulting.CanvasNet.Viewer.csproj | Adds the PlantUML package reference to the Viewer project. |
| src/DemaConsulting.CanvasNet.Tool/PandocFilter/PictureCache.cs | Adds PlantUML code-block sources to Pandoc picture caching. |
| src/DemaConsulting.CanvasNet.Tool/PandocFilter/PandocFilterEngine.cs | Plans and applies PlantUML pictures in Pandoc documents. |
| src/DemaConsulting.CanvasNet.Tool/PandocFilter/DependencyHasher.cs | Dispatches PlantUML dependency hashing from the Pandoc filter. |
| src/DemaConsulting.CanvasNet.Tool/Commands/RenderCommand.FileAccess.cs | Documents PlantUML include file-access behavior for rendering. |
| src/DemaConsulting.CanvasNet.Tool/Commands/PandocFilterCommand.cs | Updates Pandoc filter command documentation for PlantUML blocks. |
| src/DemaConsulting.CanvasNet.Tool/Commands/InspectCommand.cs | Restricts inspection theme handling to applicable diagram formats. |
| src/DemaConsulting.CanvasNet.Tool/Commands/Help/svg/supported.md | Documents supported SVG composition formats including PlantUML. |
| src/DemaConsulting.CanvasNet.Tool/Commands/Help/svg/fragments.md | Documents SVG fragments involving PlantUML sources. |
| src/DemaConsulting.CanvasNet.Tool/Commands/Help/svg/flatten.md | Documents flattening PlantUML content into SVG. |
| src/DemaConsulting.CanvasNet.Tool/Commands/Help/svg/composition.md | Documents SVG composition with PlantUML diagrams. |
| src/DemaConsulting.CanvasNet.Tool/Commands/Help/svg.md | Updates SVG help with PlantUML integration. |
| src/DemaConsulting.CanvasNet.Tool/Commands/Help/style.md | Updates style help for supported diagram formats. |
| src/DemaConsulting.CanvasNet.Tool/Commands/Help/plantuml/unsupported.md | Documents unsupported PlantUML diagram types. |
| src/DemaConsulting.CanvasNet.Tool/Commands/Help/plantuml/options.md | Documents PlantUML rendering options. |
| src/DemaConsulting.CanvasNet.Tool/Commands/Help/plantuml/differences.md | Documents differences between CanvasNet and PlantUML behavior. |
| src/DemaConsulting.CanvasNet.Tool/Commands/Help/plantuml/diagnostics.md | Documents PlantUML diagnostics and reporting. |
| src/DemaConsulting.CanvasNet.Tool/Commands/Help/plantuml.md | Adds the PlantUML help topic. |
| src/DemaConsulting.CanvasNet.Tool/Commands/Help/limits.md | Documents resource limits applicable to PlantUML rendering. |
| src/DemaConsulting.CanvasNet.Tool/Commands/Help/json/diagnostics.md | Documents PlantUML diagnostics in JSON output. |
| src/DemaConsulting.CanvasNet.Tool/Commands/Help/files.md | Documents PlantUML file references and include behavior. |
| src/DemaConsulting.CanvasNet.Tool/Commands/Help/Examples/plantuml-styled.puml | Adds a styled PlantUML help example. |
| src/DemaConsulting.CanvasNet.Tool/Commands/Help/Examples/plantuml-sequence.puml | Adds a PlantUML sequence help example. |
| src/DemaConsulting.CanvasNet.Tool/Commands/Help/Examples/plantuml-activity.puml | Adds a PlantUML activity help example. |
| src/DemaConsulting.CanvasNet.Tool/Commands/Help/errors/diagnostics.md | Documents PlantUML error diagnostics. |
| src/DemaConsulting.CanvasNet.Tool/Commands/Help/errors/codes.md | Documents PlantUML-related error codes. |
| src/DemaConsulting.CanvasNet.Tool/Commands/Help/errors.md | Updates general error help for PlantUML failures. |
| src/DemaConsulting.CanvasNet.Tool/Commands/Help/composition.md | Documents composition of PlantUML diagrams with other formats. |
| src/DemaConsulting.CanvasNet.Tool/Commands/FlattenCommand.cs | Documents PlantUML flattening support in the CLI. |
| src/DemaConsulting.CanvasNet.PlantUml/third-party/LICENSE-plantuml.txt | Adds the PlantUML MIT license notice. |
| src/DemaConsulting.CanvasNet.PlantUml/Syntax/NamespaceDoc.cs | Documents the PlantUML syntax subsystem. |
| src/DemaConsulting.CanvasNet.PlantUml/Styling/NamespaceDoc.cs | Documents the PlantUML styling subsystem. |
| src/DemaConsulting.CanvasNet.PlantUml/Sequence/NamespaceDoc.cs | Documents the PlantUML sequence subsystem. |
| src/DemaConsulting.CanvasNet.PlantUml/Scenegraph/NamespaceDoc.cs | Documents the PlantUML scenegraph subsystem. |
| src/DemaConsulting.CanvasNet.PlantUml/PlantUmlUnsupportedFeature.cs | Defines unsupported PlantUML feature metadata. |
| src/DemaConsulting.CanvasNet.PlantUml/PlantUmlSize.cs | Defines PlantUML diagram sizing information. |
| src/DemaConsulting.CanvasNet.PlantUml/PlantUmlDiagnostic.cs | Defines PlantUML diagnostic data and reporting information. |
| src/DemaConsulting.CanvasNet.PlantUml/Activity/NamespaceDoc.cs | Documents the PlantUML activity subsystem. |
| SECURITY.md | Documents PlantUML include confinement and offline behavior. |
| requirements.yaml | Registers PlantUML requirements artifacts. |
| docs/verification/introduction.md | Registers PlantUML in the verification documentation. |
| docs/verification/definition.yaml | Includes PlantUML verification documents. |
| docs/verification/canvas-net-viewer/viewer-exception.md | Verifies the Viewer PlantUML error code. |
| docs/verification/canvas-net-viewer/imaging/svg-flattener.md | Verifies PlantUML SVG flattening behavior. |
| docs/verification/canvas-net-viewer/imaging.md | Describes Viewer imaging verification for PlantUML. |
| docs/verification/canvas-net-viewer.md | Adds Viewer verification coverage for PlantUML. |
| docs/verification/canvas-net-tool/pandoc-filter/picture-cache.md | Verifies PlantUML Pandoc picture caching. |
| docs/verification/canvas-net-tool/pandoc-filter/pandoc-filter-engine.md | Verifies PlantUML Pandoc filter processing. |
| docs/verification/canvas-net-tool/pandoc-filter/dependency-hasher.md | Verifies PlantUML include dependency hashing. |
| docs/verification/canvas-net-tool/pandoc-filter.md | Adds PlantUML Pandoc filter verification coverage. |
| docs/verification/canvas-net-tool/commands/render-command.md | Verifies PlantUML rendering command behavior. |
| docs/verification/canvas-net-tool/commands/discovery-commands.md | Verifies PlantUML format discovery commands. |
| docs/verification/canvas-net-plant-uml/styling/skin-theme.md | Verifies PlantUML skin themes. |
| docs/verification/canvas-net-plant-uml/styling.md | Describes PlantUML styling verification. |
| docs/verification/canvas-net-plant-uml/sequence/sequence-model.md | Verifies the PlantUML sequence model. |
| docs/verification/canvas-net-plant-uml/scenegraph.md | Verifies PlantUML scenegraph behavior. |
| docs/verification/canvas-net-plant-uml/activity/activity-renderer.md | Verifies PlantUML activity rendering. |
| docs/verification/canvas-net-plant-uml/activity/activity-model.md | Verifies the PlantUML activity model. |
| docs/user_guide/introduction.md | Adds PlantUML to the user-guide overview. |
| docs/user_guide/examples/plantuml-sequence-boxes.puml | Adds a user-guide sequence example using participant boxes. |
| docs/user_guide/examples/plantuml-sequence-blocks.puml | Adds a user-guide sequence example using blocks. |
| docs/user_guide/examples/plantuml-sequence-basics.puml | Adds a basic user-guide sequence example. |
| docs/user_guide/examples/plantuml-figure.svg | Adds an SVG composition example embedding PlantUML. |
| docs/user_guide/examples/plantuml-activity-swimlanes.puml | Adds a user-guide activity example using swimlanes. |
| docs/user_guide/examples/plantuml-activity-partitions.puml | Adds a user-guide activity example using partitions. |
| docs/user_guide/examples/plantuml-activity-parallel.puml | Adds a user-guide activity example using parallel branches. |
| docs/user_guide/examples/plantuml-activity-loops.puml | Adds a user-guide activity example using loops. |
| docs/user_guide/examples/plantuml-activity-basics.puml | Adds a basic user-guide activity example. |
| docs/user_guide/definition.yaml | Includes the PlantUML user-guide chapter. |
| docs/user_guide/canvas-net-vega-lite.md | Updates cross-format user-guide references for PlantUML integration. |
| docs/user_guide/canvas-net-svg.md | Documents PlantUML use in SVG composition. |
| docs/sysml2/views/design-views.sysml | Adds PlantUML architecture design views. |
| docs/sysml2/model/canvas-net-viewer/viewer-exception.sysml | Models the PlantUML Viewer error code. |
| docs/sysml2/model/canvas-net-tool/pandoc-filter/picture-cache.sysml | Models PlantUML picture-cache integration. |
| docs/sysml2/model/canvas-net-tool/pandoc-filter.sysml | Models PlantUML Pandoc filter integration. |
| docs/sysml2/model/canvas-net-tool/commands/flatten-command.sysml | Models PlantUML flatten-command support. |
| docs/sysml2/model/canvas-net-plant-uml/syntax/preprocessor.sysml | Models the PlantUML preprocessor. |
| docs/sysml2/model/canvas-net-plant-uml/syntax/diagram-detector.sysml | Models PlantUML diagram detection. |
| docs/sysml2/model/canvas-net-plant-uml/syntax.sysml | Models the PlantUML syntax subsystem. |
| docs/sysml2/model/canvas-net-plant-uml/styling/skin-theme.sysml | Models PlantUML skin themes. |
| docs/sysml2/model/canvas-net-plant-uml/styling/skin-params.sysml | Models PlantUML skin parameters. |
| docs/sysml2/model/canvas-net-plant-uml/styling.sysml | Models the PlantUML styling subsystem. |
| docs/sysml2/model/canvas-net-plant-uml/sequence/sequence-renderer.sysml | Models PlantUML sequence rendering. |
| docs/sysml2/model/canvas-net-plant-uml/sequence/sequence-parser.sysml | Models PlantUML sequence parsing. |
| docs/sysml2/model/canvas-net-plant-uml/sequence/sequence-model.sysml | Models the PlantUML sequence model. |
| docs/sysml2/model/canvas-net-plant-uml/sequence/sequence-layout.sysml | Models PlantUML sequence layout. |
| docs/sysml2/model/canvas-net-plant-uml/sequence.sysml | Models the PlantUML sequence subsystem. |
| docs/sysml2/model/canvas-net-plant-uml/scenegraph/text-layout.sysml | Models PlantUML scenegraph text layout. |
| docs/sysml2/model/canvas-net-plant-uml/scenegraph/scene-painter.sysml | Models PlantUML scene painting. |
| docs/sysml2/model/canvas-net-plant-uml/scenegraph/scene-model.sysml | Models the PlantUML scenegraph model. |
| docs/sysml2/model/canvas-net-plant-uml/scenegraph.sysml | Models the PlantUML scenegraph subsystem. |
| docs/sysml2/model/canvas-net-plant-uml/activity/activity-renderer.sysml | Models PlantUML activity rendering. |
| docs/sysml2/model/canvas-net-plant-uml/activity/activity-parser.sysml | Models PlantUML activity parsing. |
| docs/sysml2/model/canvas-net-plant-uml/activity/activity-model.sysml | Models the PlantUML activity model. |
| docs/sysml2/model/canvas-net-plant-uml/activity.sysml | Models the PlantUML activity subsystem. |
| docs/reqstream/canvas-net-viewer/viewer-exception.yaml | Adds a requirement for the PlantUML Viewer error code. |
| docs/reqstream/canvas-net-viewer/imaging/svg-flattener.yaml | Adds requirements for flattening PlantUML SVG content. |
| docs/reqstream/canvas-net-viewer/imaging.yaml | Adds Viewer imaging requirements for PlantUML. |
| docs/reqstream/canvas-net-viewer/canvas-net-viewer.yaml | Adds Viewer requirements for PlantUML integration. |
| docs/reqstream/canvas-net-tool/pandoc-filter/picture-cache.yaml | Adds PlantUML picture-cache requirements. |
| docs/reqstream/canvas-net-tool/pandoc-filter/picture-attributes.yaml | Adds PlantUML picture-attribute requirements. |
| docs/reqstream/canvas-net-tool/pandoc-filter/dependency-hasher.yaml | Adds PlantUML dependency-hashing requirements. |
| docs/reqstream/canvas-net-tool/commands/discovery-commands.yaml | Adds PlantUML discovery-command requirements. |
| docs/reqstream/canvas-net-tool/commands.yaml | Adds CLI requirements for PlantUML support. |
| docs/reqstream/canvas-net-plant-uml/styling/skin-theme.yaml | Adds requirements for PlantUML skin themes. |
| docs/reqstream/canvas-net-plant-uml/styling.yaml | Adds PlantUML styling requirements. |
| docs/reqstream/canvas-net-plant-uml/sequence/sequence-model.yaml | Adds PlantUML sequence-model requirements. |
| docs/reqstream/canvas-net-plant-uml/activity/activity-renderer.yaml | Adds PlantUML activity-renderer requirements. |
| docs/reqstream/canvas-net-plant-uml/activity/activity-model.yaml | Adds PlantUML activity-model requirements. |
| docs/filters/canvasnet.lua | Adds PlantUML classes, suffixes, and fast-path tables to the Pandoc shim. |
| docs/design/definition.yaml | Includes PlantUML design documents. |
| docs/design/canvas-net/files.md | Documents PlantUML file-reference integration. |
| docs/design/canvas-net-viewer/viewer-exception.md | Describes the PlantUML Viewer error-code design. |
| docs/design/canvas-net-viewer/imaging/svg-flattener.md | Describes PlantUML SVG flattening design. |
| docs/design/canvas-net-tool/pandoc-filter/picture-cache.md | Describes PlantUML Pandoc picture-cache design. |
| docs/design/canvas-net-tool/pandoc-filter/pandoc-filter-shim.md | Describes PlantUML Pandoc shim integration. |
| docs/design/canvas-net-tool/pandoc-filter.md | Describes PlantUML Pandoc filter integration. |
| docs/design/canvas-net-tool/commands/inspect-command.md | Describes PlantUML-related inspect-command behavior. |
| docs/design/canvas-net-plant-uml/activity/activity-renderer.md | Describes PlantUML activity-renderer design. |
| CanvasNet.slnx | Adds the PlantUML source and test projects to the solution. |
| build.ps1 | Adds PlantUML user-guide runtime reads to scoped build tracking. |
Review effort: Lite
…tion Preprocessor framing now follows block and line comments with the same scanner that reads the lines, so a commented-out @startuml/@enduml no longer starts, ends, or truncates the diagram (also for included files). The package description now names sequence and new-syntax activity diagrams. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ven (macOS /var link) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
15 of 18 tasks
This was referenced Nov 23, 2026
This was referenced Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Pull Request
Description
Adds PlantUML diagrams to CanvasNet, phase 1, as the new
DemaConsulting.CanvasNet.PlantUmlpackage. It is pure managed .NET: no Java, no Graphviz.Supported diagram types: the two that PlantUML lays out without Graphviz.
teozlayout, with these features:++/--,activate/deactivate) andreturn;alt/else,opt,loop,par,break,critical,group);autonumber, boxes, title, header, footer, caption and legend, and askinparamsubset.if/elseif/elsewith labels,while,repeat,fork, andsplit;detach/kill, and connectors.plantuml-*unsupported code, and drawn empty. Phase 2 will add the types PlantUML lays out with Graphviz, probably by reusing the dagre layout already ported for Mermaid.Integration, matching Mermaid:
canvasnet render,infoandformatsfor.puml,.plantumland.pu.canvasnet help plantumlcards, with examples that the tests render.plantumlcode blocks and picture links, plus the generated shim fast-path tables. Repositories pick up the new class when they regenerate their shim.<image href="flow.puml">, Mermaidimg:nodes, and montage.plantuml-errorwith a hint;!includeis local only, under the file-access policy, and!includeurlis a diagnostic;The layouts were compared with the MIT-licensed PlantUML jar (plantuml-mit 1.2026.10). They match its structure, spacing and arrowheads, though not pixel for pixel. All test inputs are original.
alt/else, a note, activation, a divider, a loop)Docs and compliance: a user guide chapter, design and verification docs, requirements linked to tests, SysML2 model parts, ReviewMark entries, README rows, and a PlantUml row in the AGENTS.md scoped-validation table (also added to the
build.ps1RuntimeReadsmap).Type of Change
Related Issues
None.
Pre-Submission Checklist
Before submitting this pull request, ensure you have completed the following:
Build and Test
pwsh ./build.ps1(passed: 113,666 tests, 0 failed)Code Quality
Quality Checks
Please run the following checks before submitting:
pwsh ./lint.ps1(passed;render-images.ps1 -Checkpassed)Testing
Documentation
Additional Notes
mainwas merged in before opening, and its nine doc and help-card conflicts are resolved with both sides kept.elseifmerge line across three or more swimlanes, and a stale folder name in the design introduction.